The same problem occurs in UITextView. (reproduced on the following devices: iPhone Xs Max 14.3)
This problem can be solved by the following temporary measures.
func textViewDidChange(_ textView: UITextView) {
textView.text = textView.text.replacingOccurrences(of: " ", with: "\u{2002}")
}
referenced this https://en.wikipedia.org/wiki/Whitespace_character
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: